/*
* Copyright 2023 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#ifndef __CUSTOM_H_
#define __CUSTOM_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "esp_wifi.h"

#include "gui_guider.h"

extern void custom_init(lv_ui *ui);
extern void custom_set_main_time(lv_ui *ui, int hour, int min, int sec);
extern void custom_update_time(lv_ui *ui);

extern void custom_clear_wifi_list(lv_ui *ui);
extern void custom_add_wifi_list(lv_ui *ui, const char *str);
extern void custom_set_wifi_list(lv_ui *ui, wifi_ap_record_t *records, uint16_t num);

extern int custom_check_device_list(lv_ui *ui, const char *device);
extern int custom_add_device_list(lv_ui *ui, const char *device);
extern int custom_select_device_list(lv_ui *ui, const char *device);
extern int custom_get_select_device_list_idx(lv_ui *ui);
extern const char *custom_get_select_device_list(lv_ui *ui);

extern void custom_set_main_led(lv_ui *ui, int state);
extern void custom_update_device_data(lv_ui *ui, int led, const char *humi, const char *temp);
extern void custom_set_led_status(const char *device, int led);
#ifdef __cplusplus
}
#endif
#endif /* EVENT_CB_H_ */
